
import request from "@/utils/request";

/**
 * 搜索数据-商品热销榜
 * @param pageNum
 * @param pageSize
 */
export function getBestsellingProductsList(pageNum: number, pageSize: number) {
  return request.get(`/getBestsellingProductsList/${pageNum}/${pageSize}`, {}, { login: false });
}


/**
 * 搜索数据-商品喜爱榜
 * @param pageNum
 * @param pageSize
 */
export function getLikeProductsList(pageNum: number, pageSize: number) {
  return request.get(`/getLikeProductsList/${pageNum}/${pageSize}`, {}, { login: false });
}

/**
 * 搜索数据-设计师热榜
 * @param pageNum
 * @param pageSize
 */
export function getHotDesignersList(pageNum: number, pageSize: number) {
  return request.get(`/getHotDesignersList/${pageNum}/${pageSize}`, {}, { login: false });
}


/**
 * 搜索数据-设计师热榜
 * @param pageNum
 * @param pageSize
 */
export function searchDesignersData(data: Record<string, any>) {
  console.log(data, 'sssssssssssssssssssssssssssssssssssssss')
  return request.get(`/searchDesignersData`, data, { login: false });
}

/**
 * 搜索商品数据
 * @param pageNum
 * @param pageSize
 */
export function searchProductData(data: Record<string, any>) {
  return request.get(`/searchProductData`, data, { login: false });
}
